import { Controller, Get, Res, UseGuards } from '@nestjs/common';
import { AppService } from './app.service';
import { RolesGuard } from './roles/roles.guard';
@Controller()
export class AppController {
  constructor(private readonly appService: AppService) { }

  @Get()
  @UseGuards(RolesGuard)
  getHello(): string {
    return this.appService.getHello();
  }

}
